package com.atguigu.Ioc_02;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package com.atguigu.Ioc_2
 * @date 2024/4/21 下午4:52
 */
public class UserService {

    private UserDao userDao;

    public UserService(UserDao userDao) {
        this.userDao = userDao;
    }

    private String name;
    private int age;

    public UserService(UserDao userDao, String name, int age) {
        this.userDao = userDao;
        this.name = name;
        this.age = age;
    }


}
